package com.boco.biinjectionserviceapi.model.config;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SQL_TEMPLATE_INFO")
public class SqlTemplateInfo {

    /**
     * 主键
     */
    @TableId(value = "ID",type = IdType.AUTO)
    private Long id;

    /**
     * 查询名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 查询描述
     */
    @TableField("DESCRIPTION")
    private String description;


    /**
     * sql
     */
    @TableField("SQL_TEMPLATE")
    private String sqlTemplate;

    /**
     * 使用的数据源
     */
    @TableField("DATASOURCE_CONFIG_ID")
    private Long dataSourceConfigId;


}
